﻿using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class HealthPlayer : MonoBehaviour
{
    public HealthSystem healthSystem;
    // Start is called before the first frame update
    void Start()
    {
        healthSystem.OnHealthChanged += HealthSet;
    }

    public void HealthSet(int newHealth)
    {
       
        Debug.Log("newHealth:" + newHealth);
    }

    // Update is called once per frame
    void Update()
    {
        
    }
}
